<include file="Public/header" />
<title>管理员列表</title>
<style>
	.red td,.red td a{
		color:red;
	}
	.yellow td,.yellow td a{
		color:yellow;
	}
	.blue td,.yellow td a{
		color:blue;
	}
</style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 统计视图 <span class="c-gray en">&gt;</span> 费用统计 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">

	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<form class="formleft" name="" id="" action="__URL__/month_statistical/" method="get">
			日期范围：
			<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d\'}'})" id="logmin" name="start_time" value="<{$Think.get.start_time}>" class="input-text Wdate" style="width:120px;">
			-
			<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d'})" id="logmax" name="end_time" value="<{$Think.get.end_time}>" class="input-text Wdate" style="width:120px;">
			<button type="submit" class="btn btn-success"><i class="icon-plus"></i> 查询</button>
			<!-- 导出页数:<input type="text" name="page" value="" class="input-text" style="width:40px;"> -->
			<a href="javascript:;" onclick="exportExcel()" class="btn btn-primary radius">批量导出</a>
		</form>
		<span class="r">共有数据：<strong><{$count}></strong> 条</span> 
    </div>
	
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="15">统计列表</th>
			</tr>
			<tr class="text-c">
				<th width="25" class="sorting_disabled" rowspan="1" colspan="1" aria-label="" style="width: 25px;"><input type="checkbox" name="" value=""></th>
				<th width="25">序号</th>
				<th width="">统计时间</th>
				<th width="">订单总数</th>
				<th width="">税费</th>
				<th width="">操作费</th>
				<th width="">运费</th>
				<th width="">平台使用费</th>
				
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr class="text-c">
				<td><input type="checkbox" value="<{$vo.id}>" name="" class="ids"></td>
				<td><{$i}></td>
				<td><{$vo.count_time}></td>
				<td>
					<{$vo.order_num}>
				</td>
				<td><{$vo.tax}></td>
				<td><{$vo.operate_fee}></td>
				<td>
					<{$vo.freight_fee}>
				</td>
				<td>
					<{$vo.pt_fee}>
				</td>
				
			</tr>
			</volist>
		</tbody>
	</table>
	<div class="page mt" style="text-align:right"><{$page}></div>
</div>
<script>
	//批量导出
	function exportExcel(){
		var url="<{:U('Exportfile/month_statistical')}>/?1=1";
		start_time=$('input[name=start_time]').val();
		end_time=$('input[name=end_time]').val();
		if(start_time!=""){
			url=url+"&start_time="+start_time;
		}else{
			layer.msg('开始时间不能为空');
			return false;
		}
		if(end_time!=""){
			url=url+"&end_time="+end_time;
		}else{
			layer.msg('结束时间不能为空');
			return false;
		}
		var index=layer.open({
            type: 2,
            title: '导出数据',
            shadeClose: true,
            shade: 0.5,
            area: ['1000px', '150px'],
            content: url //iframe的url
        });
	}

</script>
<include file="Public/footer" />
<include file="Public/footer_js" />
</body>
</html>